package com.tbit.main.service.impl;

import com.tbit.main.dao.core.ChargeHouseDao;
import com.tbit.main.pojo.ChargeHouse;
import com.tbit.main.service.ChargeHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2020-11-12 11:01
 * 充电坊
 */
@Service("chargeHouseService")
public class ChargeHouseServiceImpl implements ChargeHouseService {
    @Autowired
    private ChargeHouseDao chargeHouseDao;

    @Override
    public void insert(ChargeHouse chargeHouse) {
        chargeHouseDao.insert(chargeHouse);
    }

    @Override
    public void del(Integer chargeHouseId) {
        chargeHouseDao.del(chargeHouseId);
    }

    @Override
    public ChargeHouse getByChargeHouseId(Integer chargeHouseId) {
        return chargeHouseDao.getByChargeHouseId(chargeHouseId);
    }

    @Override
    public void update(ChargeHouse chargeHouse) {
        chargeHouseDao.update(chargeHouse);
    }

    @Override
    public List<ChargeHouse> getByAccountId(Integer accountId) {
        return chargeHouseDao.getByAccountId(accountId);
    }
}
